package com.cskaoyan.service;

import com.cskaoyan.bean.*;
import com.cskaoyan.bean.vo.CarAndBrandVo;
import com.cskaoyan.bean.wx.vo.IndexGoodsList;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface GoodsService {
    ListData<Goods> list(Integer page, Integer limit, String sort, String order, String goodsSn, String name);

    void delete(Goods goods);

    Map<String, List<CarAndBrandVo>> carAndBrand();

    Map<String, Object> detail(Integer id);


    void create(Goods goods, List<GoodsAttribute> attributes, List<GoodsProduct> products, List<GoodsSpecification> specifications);

    void update(Goods goods, List<GoodsAttribute> attributes, List<GoodsProduct> products, List<GoodsSpecification> specifications);

    Long countGoods();

    Category selectCurrentCategory(Integer id);

    Category selectParentCategory(Integer id);

    List<Category> selectBrotherCategory(Integer id);

    HashMap<String, Object> selectGoodsList(Integer categoryId, Integer page, Integer size);

    List<IndexGoodsList> selectRelatedGoodsList(Integer id);

    HashMap<String, Object> wxGoodsDetail(Integer id);

    Integer selectSonCategoryId(Integer id);

    String selectLevel(Integer id);
}
